package com.wyb.lister;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyContextLister implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        System.out.println("应用启动了");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("应用关闭了");
    }
}
